{if ($advancedSearchFields)}
    <div id="advancedSearch" data-model="{{$model}}" class="portlet box green">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-search"></i>{{:__('advancedSearch')}}
            </div>
            <div class="tools">
                <a href="javascript:;" class="expand"> </a>
            </div>
        </div>
        <div class="portlet-body form portlet-collapsed">
            <form class="form-horizontal" role="form" action="" method="get">
                {{:token()}}
                <div class="form-body">
                    {include file="common:field" /}
                </div>
                <div class="form-actions">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3"></label>

                                <div class="col-md-9">
                                    <button type="submit" class="btn blue-madison">
                                        {{:__('filter')}} <i class="fa fa-filter"></i>
                                    </button>
                                    <a href="{{:url($Request.module.'/'.$Request.controller.'/'.$Request.action)}}?reset=1" class="btn default">{{:__('reset')}} <i class="fa fa-undo"></i></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
{/if}